package org.prail.ui.utils;

import java.awt.Component;
import java.util.ArrayList;

import javax.swing.JComponent;
import javax.swing.JProgressBar;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class CustomProgressBar extends JProgressBar implements
		TableCellRenderer {
	private static final long serialVersionUID = 6474538459705128255L;
	public static ArrayList<Integer> status = new ArrayList<Integer>();

	public Component getTableCellRendererComponent(JTable table, Object value,
			boolean isSelected, boolean hasFocus, int row, int column) {
		if (value instanceof JComponent) {
			return (JComponent) value;
		} else {
			return null;
		}
	}
	

	public void setValue(int n) {
		super.setValue(n);
	}

}
